<?php
 echo phpinfo();die;
   header("content-type:text/html;charset=utf8");
   $name = $_POST['name'];
   $price = $_POST['price'];
   $type = $_POST['type'];
   $descs = $_POST['descs'];

   $pdo = new PDO("mysql:host=127.0.0.1;dbname=day;charset=utf8","root","root");

   $sql = "INSERT goods (name,price,type,descs) VALUES('$name','$price','$type','$descs')";
   
   $st = $pdo->exec($sql);



?>